package com.lovo.service;


import com.lovo.utile.dto.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Description:
 *
 * @author LiuChengQi
 * @date Created on 2020/12/1
 */
//用Feign , 里面是注册服务器里的某个服务器别名
@FeignClient("power")
public interface IService {
    @PostMapping("/power")
    public String doPower(@RequestBody UserDto userDto);
}
